myApp.config(['$routeProvider', function ($routeProvider) {
    $routeProvider
        .when('/', {
            templateUrl: 'app/view/page/home.html',
            controller: homeCtrl,
            title: 'Home'
        })
        .when('/home', {
            templateUrl: 'app/view/page/home.html',
            controller: homeCtrl,
            title: 'Home'
        })
        .when('/about', {
            templateUrl: 'app/view/page/about.html',
            controller: aboutCtrl,
            title: 'About'
        })
        .when('/newsfeature', {
            templateUrl: 'app/view/page/newsfeature.html',
            controller: newsfeatureCtrl,
            title: 'News & Feature : ข่าวและโครงการอนาคต'
        })
        .when('/technical', {
            templateUrl: 'app/view/page/technical.html',
            controller: technicalCtrl,
            title: 'Technical : การติดตั้งบัวโฟม'
        })
        .when('/newsDetail', {
            templateUrl: 'app/view/page/newsDetail.html',
            controller: newsDetailCtrl,
            title: 'News Detail'
        })
        .when('/careerproject', {
            templateUrl: 'app/view/page/careerproject.html',
            controller: careerProjectCtrl,
            title: 'Career Project'
        })
        .when('/contact', {
            templateUrl: 'app/view/page/contact.html',
            controller: contactCtrl,
            title: 'Contact'
        })
        .when('/project', {
            templateUrl: 'app/view/page/project.html',
            controller: projectCtrl,
            title: 'Project'
        })


        .when('/administrator', {
            templateUrl: 'app/view/admin/admin-login.html',
            controller: adminLoginCtrl
        })
        .when('/admin/login', {
            templateUrl: 'app/view/admin/admin-login.html',
            controller: adminLoginCtrl,
            title: 'Contact'
        })
        .when('/admin/logout', {
            templateUrl: 'app/view/admin/admin-login.html',
            controller: adminLogoutCtrl,
            title: 'Contact'
        })
        .when('/admin/dashboard', {
            templateUrl: 'app/view/admin/admin-dashboard.html',
            controller: adminMainCtrl,
            title: 'Dashboard'
        })
        .when('/admin/category/list', {
            templateUrl: 'app/view/admin/category/list.html',
            title: 'Category List',
            controller: categoryCtrl
        })
        .when('/admin/category/category', {
            templateUrl: 'app/view/admin/category/category.html',
            title: 'Category',
            controller: categoryEditCtrl
        })
        .when('/admin/content/list', {
            templateUrl: 'app/view/admin/content/list.html',
            title: 'Content List'
        })
        .when('/admin/content/content', {
            templateUrl: 'app/view/admin/content/content.html',
            controller: contentEditCtrl,
            title: 'Content'
        })
        .when('/admin/user/list', {
            templateUrl: 'app/view/admin/user/list.html',
            title: 'User List'
        })
        .when('/admin/user/user', {
            templateUrl: 'app/view/admin/user/user.html',
            title: 'User'
        })
        .when('/admin/configure/list', {
            templateUrl: 'app/view/admin/configure/list.html',
            controller: configCtrl,
            title: 'configure List'
        })
        .when('/admin/configure/configure', {
            templateUrl: 'app/view/admin/configure/configure.html',
            controller: configEditCtrl,
            title: 'configure'
        })
        .when('/admin/home', {
            templateUrl: 'app/view/admin/admin-home.html',
            controller: adminHomeCtrl,
            title: 'Contact'
        })
        .when('/admin/profile', {
            templateUrl: 'app/view/admin/admin-profile.html',
            controller: adminProfileCtrl,
            title: 'Profile'
        })
        .when('/admin/footer', {
            templateUrl: 'app/view/template/footer.html',
            title: 'Contact'
        })
        .when('/admin/header', {
            templateUrl: 'app/view/admin/admin-header.html',
            controller: adminHeaderCtrl,
            title: 'Contact'
        })
        .when('/admin/leftmenu', {
            templateUrl: 'app/view/template/left-menu.html',
            title: 'Contact'
        })
        .when('/admin/topmenu', {
            templateUrl: 'app/view/template/top-menu.html',
            title: 'Contact'
        });
}]);
	